using System.Collections.Generic;

namespace Examples.UnitTestATM
{
    public class AccountRepository : IAccountRepository
    {
        private readonly IList<Account> _accounts = new List<Account>();

        public Account Find(string accountNumber)
        {
            return _accounts.Find(account => account.AccountNumber.Equals(accountNumber));
        }
    }
}